package com.wdj.comsumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.wdj.dubboapi.entity.MUserBook;
import com.wdj.dubboapi.service.MUserBookService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (MUserBook)表控制层
 *
 * @author makejava
 * @since 2020-07-06 11:52:21
 */
@RestController
@RequestMapping("mUserBook")
public class MUserBookController {
    /**
     * 服务对象
     */
    @Reference
    private MUserBookService mUserBookService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public MUserBook selectOne(Integer id) {
        return this.mUserBookService.queryById(id);
    }

}